package com.zyf.test;

import com.zyf.dao.daoImpl.daoImpl;
import com.zyf.entity.book;

import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

public class testDB {
    public static void main(String[] args){

        daoImpl test = new daoImpl();
        Map<String,String> bookinfo = new HashMap<String,String>();
        bookinfo.put("bookauther","zzn");
        List<book> get = test.findBook(bookinfo);
        Iterator<book> ib = get.iterator();
        while (ib.hasNext()) {
            System.out.println(ib.next().toString());
        }
    }
}
